<template>
  <div class="app-container">
    <el-dialog
      title="查看公告"
      :before-close="cancel"
      width="500px"
      :visible="diglogStatus">
      <p>标题：{{info.noticeTitle}}</p>
      <p>作者：{{info.userName}}</p>
      <p>发布时间：{{info.publishDate}}</p>
      <p>公告内容：{{info.noticeContent}}</p>
    </el-dialog>
  </div>
</template>

<script type="text/ecmascript-6">
import {findOne} from '@/api/notice'
export default {
  data() {
    return {
      info:{}
    }
  },
  props: {
    diglogStatus:{
      type: Boolean,
      default:false
    }
  },


  methods: {
    init(id){
      findOne(id).then(response => {
        this.info = response
      })
    },
    cancel(){
        this.$emit('close');
    },
    onSubmit(){
   

    }
  }
}
</script>

<style scoped lang="less">
</style>
